import java.util.*;

public class Main {
    public static void main(String[] args) {
        int count = 0;
        Scanner scanner = new Scanner(System.in);



    }

    public static void main1(String[] args) {
        long sum = 0;//和
        long num = 0;
        for (int i = 0; i < 10; i++) {
            num += 9 * Math.pow(10, i);
            sum += num;
        }
        System.out.println(sum);
    }
}
